package ch06;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class BigClass {
    private int id ;
    private Person person ;
    private String address ;
    private String[] strings ;
    private List<String> list ;
    private Set<String> set ;
    private Map<String,Object> map ;
    private Properties properties ;

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setStrings(String[] strings) {
        this.strings = strings;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }

    public void show(){
        System.out.println("===========基本类型=============");
        System.out.println(id + "----" + address);
        System.out.println("===============引用类型===============");
        System.out.println(person);
        System.out.println("=============数组==============");
        for(String s : strings){
            System.out.println(s);
        }
        System.out.println("==============List===============");
        for(String s : list){
            System.out.println(s);
        }
        System.out.println("===============Set=================");
        for(String s :set){
            System.out.println(s);
        }
        System.out.println("================Map===================");
        for(Map.Entry<String,Object> entry : map.entrySet()){
            System.out.println(entry.getKey() + "---" + entry.getValue());
        }
        System.out.println("================Properties=======================");
        for(Map.Entry entry : properties.entrySet()){
            System.out.println(entry.getKey() + "---" + entry.getValue());
        }
    }


}
